const { Controller } = require("egg");

class AclController extends Controller {
    /**
     * 获取权限列表
     */
    async index() {
        // 获取部门列表
        let res = await this.service.acl.readList();
        // 返回响应
        this.ctx.body = {
            code: 200,
            data: res,
            message: "请求成功",
        };
    }
}

module.exports = AclController;
